//
//  UIButton+ UIButtonExt.h
//  SongShuV2
//
//  Created by cruise on 16/6/27.
//  Copyright © 2016年 com.linjm. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, LMButtonEdgeInsetsStyle) {
    LMButtonEdgeInsetsStyleTop, // image在上，label在下
    LMButtonEdgeInsetsStyleLeft, // image在左，label在右
    LMButtonEdgeInsetsStyleBottom, // image在下，label在上
    LMButtonEdgeInsetsStyleRight // image在右，label在左
};

@interface UIButton(Extension)

/**
 *  设置button的titleLabel和imageView的布局样式，及间距
 *
 *  @param style titleLabel和imageView的布局样式
 *  @param space titleLabel和imageView的间距
 */
- (void)layoutButtonWithEdgeInsetsStyle:(LMButtonEdgeInsetsStyle)style
                        imageTitleSpace:(CGFloat)space;

@end
